import java.util.Scanner;

import main.LocalGame;


public class Game {
	
	Scanner in = new Scanner(System.in);
	
	public Game() {
		mainLoop();
	}
	
	public void mainLoop() {
		System.out.println("------------------------------------------------");
		System.out.println("---Davinci Code ---");
		System.out.println("------------------------------------------------");
		while(true) {
			System.out.println("1. Start a new Game.");
			System.out.println("2. Start a new host. (on Internet)");
			System.out.println("3. Join a Game. (on Internet)");
			System.out.println("4. Help.");
			System.out.println("5. Exit.\n");
			System.out.print("Select a Number: ");
			
			// 暂且不考虑输入错误的问题
			int chose = in.nextInt();

			switch (chose) {
			case 1:
				System.out.printf("Input player number: ");
				int num = in.nextInt();
				// zero condition
				new LocalGame(num).start();
				break;
				
			case 2:
				
				break;
				
			case 3:
				
				break;
				
			case 4:
				
				break;
				
			case 5:
				return;

			default:
				break;
			}

		}
	}

}
